package edu.westga.movierec.XAMPPtests.reader;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import edu.westga.movierec.model.*;

/**
 * Test methods for {@link edu.westga.movierec.model.XamppDBConnector#XamppDBConnector()
 * 					@link edu.westga.movierec.model.XamppDBConnector#IsConnectionOpen()}.
 * 
 * @author Jean Cook, CS 6242, Fall 2009
 *
 */
public class WhenCreated {
	private XamppDBConnector theDatabase;
	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
		this.theDatabase = new XamppDBConnector();
	}

	
	@Test
	public void connectionShouldExist() {
		assertTrue(this.theDatabase.isConnectionOpen());
	}
}
